package com.rao.gmall.order.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.rao.gmall.model.order.OrderDetail;
import com.rao.gmall.model.order.OrderInfo;
import com.rao.gmall.model.user.UserAddress;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author nzmxfan
 * @create 2021-08-20-19:48
 */
public interface OrderInfoMapper extends BaseMapper<OrderInfo> {

    /**
     * 关闭订单
     * @param id      订单id
     * @param status 订单状态
     */
    void updateOrderStatus(@Param("id") Long id, @Param("orderStatus") String status);

    void changeOrderStatusPayed(@Param("outTradeNo") String outTradeNo, @Param("orderStatus") String name);
}
